<?php 
class IndexController extends DomController {
	
	public function index() {
		
	}
	
	public function customMethod() {
		
		$this->view->contents = 'My custom method - <a href="'.$this->getUrl('customMethod').'">'.$this->getUrl('customMethod').'</a>';
		
		
	}
	
	public function setup() {
		$this->view->metaAuthor = '';
		$this->view->metaKeywords = '';
		$this->view->metaDescription = '';
		$this->view->pageTitle = '';
		
		$this->view->mainMenuLinks = $this->getSite()->site->getChildPagesArray(true);
		if( $this->getSite()->page ) {
			$this->view->subMenuLinks = $this->getSite()->page->getRootPage()->getChildrenTreeArray(true);
		}
		
		$this->view->assign( $this->getSite()->site->getBannersHtml() );

	}
	
	public function error404() {
		$this->view->addPartitioner('contents', 'Errors/error404.html');
	}
	
	public function error403() {
		$this->view->addPartitioner('contents', 'Errors/error403.html');
	}

}
?>